package com.sofwin.common;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @packageName: com.sofwin.common
 * @author: andyliu
 * @date: 2022/8/9 16:12
 * @email 115176513@qq.com
 * @description: TODO
 */

public class DateUtil {

    /**
     * 获取当前时间
     * @param pattern
     * @return
     */
    public static String getCurrent(String pattern){
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        return sdf.format(new Date());
    }
    // 两个日期之差

    // 某月的第几天
}
